package com.example.agricultural_big_data.pojo;

/**
 * @author xiao yang
 * @Description:
 * @date 2021/1/3115:10
 */
public enum ResultCode {
    success(0,"成功"),
    fail(1,"不存在该用户"),
    error(2,"密码错误"),
    exception(3,"服务端异常"),
    find_error(4,"查询失败"),
    no_match(5,"验证码错误");

    private int statusCode;
    private String msg;

    ResultCode(int statusCode, String msg) {
        this.statusCode = statusCode;
        this.msg = msg;
    }

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
